package com.loan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.loan.group.ProcessAddGroup;
import jdk.internal.org.objectweb.asm.tree.analysis.Value;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

@TableName("process")
@ToString
@Data
public class Process  implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("app_id")
    @NotNull(message = "申请表id不能为空",groups = {ProcessAddGroup.class})
    private Integer appId;

    @TableField("emp_id")
    @NotNull(message = "业务员不能为空", groups = {ProcessAddGroup.class})
    private Integer empId;

    @TableField("handle_id")
    @NotNull(message = "操作不能为空",groups = {ProcessAddGroup.class})
    private Integer handleId;

    @TableField(exist = false)
    private Handle handle;

    @NotBlank(message = "处理的结果不能为空",groups = {ProcessAddGroup.class})
    private String result;

    private Date time;


}